package com.modernyuanshiren;

public class Record {
	private Guess guess;
	private Result result;

	public Record(Guess guess, Result result) {
		super();
		this.guess = guess;
		this.result = result;
	}

	public Guess getGuess() {
		return guess;
	}

	public Result getResult() {
		return result;
	}

	public boolean isEnd() {
		return result.getA() == guess.getAnswer().length()
				&& result.getB() == 0;
	}
}
